//
//  AlertOfLogin.m
//  UI14_AlertView
//
//  Created by 李劲成 on 16/3/28.
//  Copyright © 2016年 ljc. All rights reserved.
//

#import "AlertOfLogin.h"

@interface AlertOfLogin ()

@end

@implementation AlertOfLogin

- (void)viewDidLoad {
    [super viewDidLoad];
    UIAlertAction *action = [UIAlertAction actionWithTitle:@"Confirm" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        // delegate 回调出去.
        if ([self.delegate respondsToSelector:@selector(clickConfirmButton:)]) {
             [self.delegate clickConfirmButton:self];
        }
       
    }];
    [self addAction:action];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - overriding init



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
